import os
from pyx import *
os.system('freefem++ Poisson.edp') # run "freefem++ Poisson.edp" -> output "test.txt"
erreurL2 = graph.graphxy(width=10) # graph definition
erreurH1 = graph.graphxy(width=10) # graph definition
erreurL2.plot(graph.data.file("test.txt",x=1, y=2)) # screen plot <- input test.txt
erreurH1.plot(graph.data.file("test.txt",x=1, y=3)) # screen plot <- input test.txt
erreurL2.writePDFfile("erreurL2")
erreurH1.writePDFfile("erreurH1")
